<div id="result">
<?php echo $this->Session->flash(); ?>
<div class="div_header1">Update Group</div>
<form method="post" id="add_category" action="<?php echo Configure::read('base_url')."groups/edit";?>">
<table cellspacing="0" id="mytable" style="float: left;">
          <tbody>
         <tr>
            <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="3" style="float: left;">
              <tr>
                 <td width="144" align="right">
                Group Name
		</td>
                  <td width="144" align="left">
                      <input type="hidden" name="data[Group][id]" value="<?php
                      echo $this->data['Group']['id'];

                      ?>" />
                  <?php
               echo $this->Form->input('Group.name',array('label'=>false,'size'=>30,'class'=>"required", 'title'=>"Enter Group name here")); ?>
		</td>

              </tr>
              <tr>
                 <td width="144" align="right">
                Group Type
		</td>
                  <td width="144" align="left">

                <?php
		$options=array('S-Admins'=>'S-Admins','Q-Admins'=>'Q-Admins','Sellers'=>'Sellers','Buyers'=>'Buyers');
		echo $this->Form->select('Group.group_type',$options,null,array('empty'=>'select'));
		?>
		</td>

              </tr>
              <tr>

                <td width="347" colspan="2" align="center"><input type="submit" style="background:#73AE0B; color:#fff; font-size:14px;" name="button" id="button" value="Update" /></td>
              </tr>
            </table></td>
            </tr>
        </tbody></table>
</form>
</div>
<?php  echo $html->script(array("jquery.min.js","jquery.form.js","jquery.validate.js")); ?>
 <script type="text/javascript">
 jQuery(document).ready(function(){

		var v = jQuery("#add_category").validate({
			submitHandler: function(form) {
				jQuery(form).ajaxSubmit({
					target: "#result"
				});
			}
		});

	});
 </script>